module.exports = app => {
  const mongoose = app.mongoose;
  const { ObjectId } = mongoose.Schema.Types;
  const Schema = mongoose.Schema;
  const RoleSchema = new Schema({
    userId: {
      type: Number,
      required: true // 必填项
    },
    food: {
      type: Object
    },
    value: {
      type: Number,
      required: true
    },
    type: {
      type: Number,
      required: true
    },
  });
  return mongoose.model("Food", RoleSchema, "food");
};
